.user-info{
  display: inline-block;
  padding: 0 12px;
  color: $font-default;
  position: relative;
  .user-avatar{
    display: inline-block;
    width: 32px;
    img{
      width: 32px;
      height: 32px;
      border-radius: 50%;
    }
  }
  .user-name{
    display: inline-block;
    margin-left: 8px;
    margin-right: 2px;
  }
  .arrow{
    font-size: 12px;
    margin-left: 2px;
    transition: all .5s;
  }
  .user-info-list{
    position: absolute;
    top: 55px;
    right: 0;
    max-height: 200px;
    min-width: 140px;
    padding: 10px 0;
    z-index: -1;
    &.show{ display: block; }
    &.hide{ display: none; }
    li{
      list-style: none;
      line-height: 36px;
      white-space: nowrap;
      padding-right: 14px;
      color: $font-default;
      cursor: pointer;
      &:hover{
        background-color: $highlight-default;
      }
      &:last-child{
        line-height: 42px;
        border-top: 1px solid rgba(0, 0, 0, 0.025);
      }
    }
    i{
      color: $font-default;
    }
    span{
      display: inline-block;
      width: 36px;
      text-align: center;
    }
  }
  .user-info-box{
    padding: 0;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: $shadow-card;
    li:first-child{
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
    }
    li:last-child{
      border-bottom-left-radius: 4px;
      border-bottom-right-radius: 4px;
    }
  }
  &:hover{
    .arrow{
      transform:rotate(180deg);
      -ms-transform:rotate(180deg);
      -moz-transform:rotate(180deg);
      -webkit-transform:rotate(180deg);
      -o-transform:rotate(180deg);
    }
  }
}
